unit cadastros;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Padrao, ImgList, ComCtrls, ToolWin;

type
  TFormCadastros = class(TFormPadrao)
    procedure ToolButton5Click(Sender: TObject);
    procedure ToolButton2Click(Sender: TObject);
    procedure ToolButton1Click(Sender: TObject);
    procedure ToolButton3Click(Sender: TObject);
    procedure ToolButton4Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormCadastros: TFormCadastros;

implementation

uses marcas,modelos, clientes, produtos;

{$R *.dfm}

procedure TFormCadastros.ToolButton1Click(Sender: TObject);
begin
  inherited;
  Application.CreateForm(TFormModelos, FormModelos);
  FormModelos.ShowModal;

end;

procedure TFormCadastros.ToolButton2Click(Sender: TObject);
begin
  inherited;
      Application.CreateForm(TFormMarcas, FormMarcas);
      FormMarcas.ShowModal;
end;

procedure TFormCadastros.ToolButton3Click(Sender: TObject);
begin
  inherited;
     Application.CreateForm(TFormClientes, FormClientes);
      FormClientes.ShowModal;
end;

procedure TFormCadastros.ToolButton4Click(Sender: TObject);
begin
  inherited;
    Application.CreateForm(TFormProdutos, FormProdutos);
      FormProdutos.ShowModal;
end;

procedure TFormCadastros.ToolButton5Click(Sender: TObject);
begin
  inherited;
    self.Close;
end;

end.
